import App from './App'
import { createSSRApp } from 'vue'
import uvUI from '@climblee/uv-ui'
import utils from '@/common/utils/utils.js'
import { initRequest } from '@/common/request/request.js'
import auth from '@/common/utils/auth.js'
import pinia from '@/common/stores'
export function createApp() {
  const app = createSSRApp(App)
  uni.$utils = utils
  uni.$auth = auth
  app.use(uvUI)
  app.use(pinia)
  initRequest(app)
  uni.$zp = {
  	config: {
  		//配置分页默认pageSize为20
  		'default-page-size': 20,
  		//配置空数据图默认描述文字为：空空如也~~
  		'empty-view-text': '暂无数据~',
		'empty-view-img': '/static/home/empty_icon.png',
		'empty-view-img-style':{
			width:'328rpx',
			height:'328rpx'
		}
  	}
  }
  return {
    app
  }
}